#include <48func.h>
enum CMDTYPE{
    CD,LS,PUTS,GETS,REMOVE,PWD,MKDIR,RMDIR
};

typedef struct order_s{
    int type;
    char bufc[1024];
}order_t;

typedef struct train_s
{
    int length;
    char data[1000];
}train_t;

int recvn(int sockfd, void *buf, int length);
int recvFile(int sockfd,char* bufc);
int putsFile(int sockfd, const char *buf);
int getcmd(const char *buf);
void userLogin(int clientfd);
int logrecord(char* order);
